print("请输入三角形的三条边长(0 o 0):")
number1 = {0, 0, 0}
for i = 1, 3 do
    number1[i] = io.read("*number")
    if number1[i] <= 0 then
        print("error")
        return 0
    end
end

if
    ((number1[1] + number1[2] > number1[3]) and (number1[1] + number1[3] > number1[2]) and
        (number1[3] + number1[2] > number1[1]))
 then
    if (number1[1] == number1[2] or number1[1] == number1[3] or number1[2] == number1[3]) then
        if ((number1[1] == number1[2]) and (number1[2] == number1[3])) then
            print(" equilateral triangle")
        else
            print("ioceles triangle")
        end
    else
        print("triangle")
    end
else
    print("non-triangle")
end
